var $ = getApp(), methods = require("../methods.js");
Page(Object.assign({}, methods, {
	data: {
		prodata: '',
		isload: 0,
		hiddenmodalremark:true,
		hiddenmodalfahuo:true,
		remarkdata:'',
		expressno:'',
		index:0
	},
	_onLoad: function (option) {
		var that = this;
		wx.setNavigationBarTitle({
			title: (that.data.textset['余额'] || '余额')+'提现详情'
		});
		$.get($.pre_url + '/am.php?s=/finance/withdrawdetail', { id: that.options.id }, function (res) {
			res.isload = true
			that.setData(res);
		});
	},
	shenhenopass: function (e) {
		var that = this;
		var id = e.currentTarget.dataset.id
		$.confirm('确定要驳回提现申请吗?', function () {
			$.post($.pre_url + '/am.php?s=/finance/widthdrawnopass', { id: id }, function (data) {
				$.success(data.msg);
				setTimeout(function () {
					that._onLoad();
				}, 1000)
			})
		}, '提交中');
	},
	shenhepass: function (e) {
		var that = this;
		var id = e.currentTarget.dataset.id
		$.confirm('确定要审核通过吗?', function () {
			$.post($.pre_url + '/am.php?s=/finance/widthdrawpass', { id: id }, function (data) {
				$.success(data.msg);
				setTimeout(function () {
					that._onLoad();
				}, 1000)
			})
		}, '提交中');
	},
	setydk:function(e){
		var that = this;
		var id = e.currentTarget.dataset.id
		$.confirm('确定已打款吗?', function () {
			$.post($.pre_url + '/am.php?s=/finance/widthdsetydk', { id: id }, function (data) {
				$.success(data.msg);
				setTimeout(function () {
					that._onLoad();
				}, 1000)
			})
		}, '提交中');
	},
	wxdakuan:function(e){
		var that = this;
		var id = e.currentTarget.dataset.id
		$.confirm('确定要微信打款吗?', function () {
			$.post($.pre_url + '/am.php?s=/finance/widthdwxdakuan', { id: id }, function (data) {
				$.success(data.msg);
				setTimeout(function () {
					that._onLoad();
				}, 1000)
			})
		}, '提交中');
	},
}))